package com.adingxiong.cft.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * @ClassName UpdatePasswordParam
 * @Description TODO
 * @Author xiongchao
 * @Date 2020/9/24 18:05
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class UpdatePasswordParam {
    @NotEmpty
    @ApiModelProperty(value = "用户名")
    private String username;
    @NotEmpty
    @Size(min = 6,max = 16,message = "密码长度为6-16为")
    @ApiModelProperty(value = "新密码")
    private String newPassword;

    @NotEmpty
    @Size
    @Size(min = 6,max = 16,message = "密码长度为6-16为")
    @ApiModelProperty(value = "旧密码")
    private String oldPassword;
}
